package com.VolunteerPlatform.Dao;

import com.VolunteerPlatform.Entity.TeamInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by DoveXL on 2018/12/9.
 */
@Repository
public interface TeamInfoDao {

    public List<TeamInfo> getAllTeamInfo(@Param("TeamName") String TeamName,@Param("Page") int Page,@Param("PageList") int PageList);

    public int insertTeamInfo(@Param("TeamName") String TeamName,@Param("TeamNumber") int TeamNumber,@Param("TeamLeading") String TeamLeading,@Param("LeadingPhonenum") String LeadingPhonenum);

    public int updateTeamInfo(@Param("OriginTeamName") String OriginTeamName,@Param("TeamName") String TeamName,@Param("TeamNumber") int TeamNumber,@Param("TeamLeading") String TeamLeading,@Param("LeadingPhonenum") String LeadingPhonenum);

    public int deleteTeamInfo(@Param("TeamName") String TeamName);

    public int batchInsertTeamInfo(@Param("InsertList") List<TeamInfo> Insertlist);


}
